<template>
	<view>
		<demo-child ref="child">{{count}}--{{str}}</demo-child>

	</view>
</template>

<script setup>
	import {
		onMounted,
		ref
	} from 'vue';
	const child = ref(null)
	const count = ref(0)
	const str = ref()
	onMounted(() => {
		console.log(child.value);
		count.value = child.value.count
		str.value = child.value.str
	})
</script>

<style>

</style>